<?php
namespace Home\Controller;
use Think\Controller;
class ArticleController extends CommonController{
    public function article(){
      $art=D('article')->find(I('get.id'));
      $this->assign('artres',$art);
      $this->catename($art['cateid']);
      $this->display();
    }
    public function catename($cate){
      $catename=D('cate')->find($cate);
      $this->assign('catename',$catename);
    }
}
